In this case the output files will be named myfigures.tfm and
myfigures.300gf.
- Generate a PK file from the GF file using gftopk:
.br
gftopk myfigures.300gf myfigures.300pk
.br
The name of the output file for gftopk depends on the DVI driver you use.
Ask your local TeX administrator about the naming conventions. Next, either
install the TFM and PK files in the appropriate directories, or set your
environment variables properly. Usually this involves setting TEXFONTS to
include the current directory and doing the same thing for the environment
variable that your DVI driver uses (no standard name here...). This step is
necessary so that TeX will find the font metric file and your DVI driver will
find the PK file.
- To include your pictures in your document you have to tell TeX the font:
.br
\\font\\gnufigs=myfigures
.br
Each picture you made is stored in a single character. The first picture is
character 0, the second is character 1, and so on... After doing the above
step, you can use the pictures just like any other characters. Therefore, to
place pictures 1 and 2 centered in your document, all you have to do is:
.br
\\centerline{\\gnufigs\\char0}
.br
.br
\\centerline{\\gnufigs\\char1}
.br
in plain TeX. For LaTeX you can, of course, use the picture environment and
place the picture wherever you wish by using the \\makebox and \\put macros.
This conversion saves you a lot of time once you have generated the font;
TeX handles the pictures as characters and uses minimal time to place them,
and the documents you make change more often than the pictures do. It also
saves a lot of TeX memory. One last advantage of using the METAFONT driver
is that the DVI file really remains device independent, because no \\special
commands are used as in the eepic and tpic drivers.
.sp 2
.RE
.br
.NH 3
Mgr
.sp 1
.LP
.XS
Mgr
.XE
The \fBmgr\fR terminal driver supports the Mgr Window system. It has no options.
.sp 2
.NH 3
Mif
.sp 1
.LP
.XS
Mif
.XE
The \fBmif\fR terminal driver produces Frame Maker MIF format version 3.00. It
plots in MIF Frames with the size 15*10 cm, and plot primitives with the same
pen will be grouped in the same MIF group. Plot primitives in a \fBgnuplot\fR
page will be plotted in a MIF Frame, and several MIF Frames are collected in
one large MIF Frame. The MIF font used for text is "Times".
Several options may be set in the MIF 3.00 driver.
Syntax:
.br
set terminal mif {colour | monochrome} {polyline | vectors}
.br
.br
{help | ?}
.br
\fBcolour\fR plots lines with line types >= 0 in colour (MIF sep. 2--7) and
\fBmonochrome\fR plots all line types in black (MIF sep. 0).
\fBpolyline\fR plots curves as continuous curves and \fBvectors\fR plots curves as
collections of vectors.
\fBhelp\fR and \fB?\fR print online help on standard error output---both print a
short description of the usage; \fBhelp\fR also lists the options;
Examples:
.br
set term mif colour polylines # defaults
.br
.br
set term mif # defaults
.br
.br
set term mif vectors
.br
.br
set term mif help
.br
.sp 2
.NH 3
Mtos
.sp 1
.LP
.XS
Mtos
.XE
The \fBmtos\fR terminal has no options. It sends data via a pipe to an external
program called GPCLIENT. It runs under MULTITOS, Magic 3.x, MagicMAC. and
MiNT. If you cannot find GPCLIENT, than mail to dirk@lstm.uni-erlangen.de.
.sp 2
.NH 3
Next
.sp 1
.LP
.XS
Next
.XE
Several options may be set in the next driver.
Syntax:
.br
set terminal next {<mode>} {<type> } {<color>} {<dashed>}
.br
.br
{"<fontname>"} {<fontsize>} title {"<newtitle>"}
.br
where <mode> is \fBdefault\fR, which sets all options to their defaults;
<type> is either \fBnew\fR or \fBold\fR, where \fBold\fR invokes the old single window;
<color> is either \fBcolor\fR or \fBmonochrome\fR;
<dashed> is either \fBsolid\fR or \fBdashed\fR;
"<fontname>" is the name of a valid PostScript font;
<fontsize> is the size of the font in PostScript points; and
<title> is the title for the GnuTerm window.
Defaults are \fBnew\fR, \fBmonochrome\fR, \fBdashed\fR, "Helvetica", 14pt.
Examples:
.br
set term next default
.br
.br
set term next 22
.br
.br
set term next color "Times-Roman" 14
.br
.br
set term next color "Helvetica" 12 title "MyPlot"
.br
.br
set term next old
.br
.sp 2
.NH 3
Pbm
.sp 1
.LP
.XS
Pbm
.XE
Several options may be set in the \fBpbm\fR terminal---the driver for PBMplus.
Syntax:
.br
set terminal pbm {<fontsize>} {<mode>}
.br
where <fontsize> is \fBsmall\fR, \fBmedium\fR, or \fBlarge\fR and <mode> is \fBmonochrome\fR,
\fBgray\fR or \fBcolor\fR. The default plot size is 640 pixels wide and 480 pixels
high; this may be changed by \fBset size\fR.
The output of the \fBpbm\fR driver depends upon <mode>: \fBmonochrome\fR produces a
portable bitmap (one bit per pixel), \fBgray\fR a portable graymap (three bits
per pixel) and \fBcolor\fR a portable pixmap (color, four bits per pixel).
The output of this driver can be used with Jef Poskanzer\&'s excellent PBMPLUS
package, which provides programs to convert the above PBMPLUS formats to GIF,
TIFF, MacPaint, Macintosh PICT, PCX, X11 bitmap and many others.
Examples:
.br
set terminal pbm small monochrome # defaults
.br
.br
set size 2,2; set terminal pbm color medium
.br
.sp 2
.NH 3
Pc
.sp 1
.LP
.XS
Pc
.XE
The \fBpc\fR terminal driver supports PCs with arbitrary graphics boards, which
will be automatically detected. It should be used only if you are not using
the gcc or Zortec C/C++ compilers.
.sp 2
.NH 3
Pm
.sp 1
.LP
.XS
Pm
.XE
The \fBpm\fR terminal driver provides an OS/2 Presentation Manager window in
which the graph is plotted. The window is opened when the first graph is
plotted. This window has its own online help as well as facilities for
printing, copying to the clipboard and some line type and color adjustments.
The \fBmultiplot\fR option is supported.
Syntax:
.br
set terminal pm {server {n}} {persist} {widelines} {enhanced} {"title"}
.br
If \fBpersist\fR is specified, each graph appears in its own window and all
windows remain open after \fBgnuplot\fR exits. If \fBserver\fR is specified, all
graphs appear in the same window, which remains open when \fBgnuplot\fR exits.
This option takes an optional numerical argument which specifies an instance
of the server process. Thus multiple server windows can be in use at the
same time.
If \fBwidelines\fR is specified, all plots will be drawn with wide lines. If
\fBenhanced\fR is specified, sub- and superscripts and multiple fonts are
enabled using the same syntax as the \fBenhanced postscript\fR option (see \fBset terminal postscript enhanced\fR for details). Font names for the basic
PostScript fonts may be abbreviated to single letters.
If \fBtitle\fR is specified, it will be used as the title of the plot window.
It will also be used as the name of the server instance, and will override
the optional numerical argument.
.sp 2
.NH 3
Png
.sp 1
.LP
.XS
Png
.XE
The \fBpng\fR terminal driver supports Portable Network Graphics. To compile it,
you will need the third-party libraries "libpng" and "zlib"; both are
available at ftp://ftp.uu.net/graphics/png. \fBpng\fR has two options.
Syntax:
.br
set terminal png {small | medium | large}
.br
.br
{monochrome | gray | color}
.br
The defaults are small (fontsize) and monochrome.
.sp 2
.NH 3
Postscript
.sp 1
.LP
.XS
Postscript
.XE
Several options may be set in the \fBpostscript\fR driver.
Syntax:
.br
set terminal postscript {<mode>} {color | monochrome}
.br
.br
{solid | dashed} {<duplexing>}
.br
.br
{enhanced | noenhanced}
.br
.br
{"<fontname>"} {<fontsize>}
.br
where <mode> is \fBlandscape\fR, \fBportrait\fR, \fBeps\fR or \fBdefault\fR
\fBsolid\fR draws all plots with solid lines, overriding any dashed patterns;
<duplexing> is \fBdefaultplex\fR, \fBsimplex\fR or \fBduplex\fR ("duplexing" in
PostScript is the ability of the printer to print on both sides of the same
page---don\&'t set this if your printer can\&'t do it);
\fBenhanced\fR activates the "Enhanced PostScript" features (subscripts,
superscripts and mixed fonts);
\fB"<fontname>"\fR is the name of a valid PostScript font; and \fB<fontsize>\fR is
the size of the font in PostScript points.
\fBdefault\fR mode sets all options to their defaults: \fBlandscape\fR, \fBmonochrome\fR,
\fBdashed\fR, \fBdefaultplex\fR, \fBnoenhanced\fR, "Helvetica" and 14pt.
.br
Default size of a PostScript plot is 10 inches wide and 7 inches high.
.br
\fBeps\fR mode generates EPS (Encapsulated PostScript) output, which is just
regular PostScript with some additional lines that allow the file to be
imported into a variety of other applications. (The added lines are
PostScript comment lines, so the file may still be printed by itself.) To
get EPS output, use the \fBeps\fR mode and make only one plot per file. In \fBeps\fR
mode the whole plot, including the fonts, is reduced to half of the default
size.
Examples:
.br
set terminal postscript default # old postscript
.br
.br
set terminal postscript enhanced # old enhpost
.br
.br
set terminal postscript landscape 22 # old psbig
.br
.br
set terminal postscript eps 14 # old epsf1
.br
.br
set terminal postscript eps 22 # old epsf2
.br
.br
set size 0.7,1.4; set term post portrait color "Times-Roman" 14
.br
.sp 2
.RS
.IP
.NH 4
Enhanced postscript
.sp 1
.LP
.XS
Enhanced postscript
.XE
.EQ
delim $$
.EN
.KS
.TS
center box tab (@) ;
c c l .
.TE
.TS
center box tab ($) ;
c c l .
Control$Examples$Explanation
_
^$a^x$superscript
\&_$a\&_x$subscript
@ $ @x or a\&@^b\&_c$phantom box (occupies no width)
& $ &{space}$inserts space of specified length
.TE
.KE
.EQ
delim off
.EN
{text} can be used to allow multiple-character text, where only a single
character is expected (e.g., 2^{10}). To change the font and/or size, use
the full form: {/[fontname][=fontsize] text} (For example, {/Symbol=20 G}
is a 20 point GAMMA). (The \&'/\&' character MUST be the first character after
the \&'{\&'.)
If the encoding vector has been changed by \fBset encoding\fR, the default
encoding vector can be used instead by following the slash with a dash. This
is unnecessary if you use the Symbol font, however---since /Symbol uses its
own encoding vector, \fBgnuplot\fR will not apply any other encoding vector to
it.
The phantom box is useful for a@^b_c to align superscripts and subscripts,
and for overwriting an accent on a letter. (The latter is tricky; it is much
easier to use \fBset encoding iso_8859_1\fR to change to the ISO Latin-1 encoding
vector, which contains a large variety of letters with accents or other
diacritical marks.) It is common sense to put the shorter of the two in the
phantom box.
Space equal in length to a string can be inserted using the \&'&\&' character.
Thus
.br
'abc&{def}ghi'
.br
would produce
.br
'abc ghi'.
.br
You can access special symbols numerically by specifying \\character-code (in
octal), e.g., {/Symbol \\245} is the symbol for infinity.
You can escape control characters using \\, e.g., \\\\, \\{, and so on.
But be aware that strings in double-quotes are parsed differently than those
enclosed in single-quotes. The major difference is that backslashes may need
to be doubled when in double-quoted strings.
Examples (these are hard to describe in words---try them!):
.br
set xlabel 'Time (10^6 {/Symbol m}s)'
.br
.br
set title '{/Symbol=18 \\362@_{/=9.6 0}^{/=12 x}} \\
.br
.br
{/Helvetica e^{-{/Symbol m}^2/2} d}{/Symbol m}'
.br
The file "ps_guide.ps" in the /docs subdirectory of the \fBgnuplot\fR source
distribution contains more examples of the enhanced syntax.
.sp 2
.RE
.br
.NH 3
Pslatex and pstex
.sp 1
.LP
.XS
Pslatex and pstex
.XE
The \fBpslatex\fR and \fBpstex\fR drivers generate output for further processing by
LaTeX and TeX, respectively. Figures generated by \fBpstex\fR can be included
in any plain-based format (including LaTeX).
Syntax:
.br
set terminal pslatex | |pstex {<color>} {<dashed>} {<rotate>}
.br
.br
{auxfile} {<font_size>}
.br
<color> is either \fBcolor\fR or \fBmonochrome\fR. <rotate> is either \fBrotate\fR or
\fBnorotate\fR and determines if the y-axis label is rotated. <font_size> is
used to scale the font from its usual size.
If \fBauxfile\fR is specified, it directs the driver to put the PostScript
commands into an auxiliary file instead of directly into the LaTeX file.
This is useful if your pictures are large enough that dvips cannot handle
them. The name of the auxiliary PostScript file is derived from the name of
the TeX file given on the \fBset output\fR command; it is determined by replacing
the trailing \fB.tex\fR (actually just the final extent in the file name---and
the option will be turned off if there is no extent) with \fB.ps\fR in the output
file name. Remember to close the file before leaving \fBgnuplot\fR.
Examples:
.br
set term pslatex monochrome dashed rotate # set to defaults
.br
To write the PostScript commands into the file "foo.ps":
.br
set term pslatex auxfile
.br
.br
set output "foo.tex"; plot ...: set output
.br
.sp 2
.NH 3
Pstricks
.sp 1
.LP
.XS
Pstricks
.XE
The \fBpstricks\fR driver is intended for use with the "pstricks.sty" macro
package for LaTeX. It is an alternative to the \fBeepic\fR and \fBlatex\fR drivers.
You need "pstricks.sty", and, of course, a printer that understands